﻿@using ClientApp.Models
@using CommonApp.Models

@{
    ViewBag.Title = "Entrance";
    Layout = "~/Views/Admission/_AdmissionLayout.cshtml";
}

<div id="entrance">
    <ul>
        <li><a href="#logonView">Log On</a></li>
        <li><a href="#registerView">Request registration</a></li>
    </ul>
    <div id="logonView">
        @Html.Partial("LogOn", new LogOnModel())
    </div>
    <div id="registerView">
        @Html.Partial("Register", new UserRequest())
    </div>
</div>

<script type="text/javascript">
    $(function() {
        $("#entrance").tabs({
            selected: @(ViewBag.FamiliarUser ? Html.Raw("0") : Html.Raw("1"))
        });
    });
</script>
